/*
 * Copyright (c) 2011.
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Lesser General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

package org.skavookie.expressions.java;

import org.skavookie.expressions.Expr;
import org.skavookie.expressions.IntegralExprVisitor;

import org.skavookie.expressions.JavaUtils;
import scala.math.Integral;
import scala.reflect.Manifest;

/**
 * Created by IntelliJ IDEA.
 * User: joshua
 * Date: 6/2/11
 * Time: 10:57 AM
 * To change this template use File | Settings | File Templates.
 */
public class ByteWrapper extends IntegralWrapper<scala.Byte,IntegralExprVisitor> {
    static final Integral ops = JavaUtils.byteIsIntegral();
    static final Manifest manifest = JavaUtils.byteManifest();

    public ByteWrapper(Expr<scala.Byte> byteExpr) {
        super(byteExpr);
    }

    @Override
    protected Integral ops() {
        return ops;
    }

    @Override
    protected IntegralWrapper<scala.Byte, IntegralExprVisitor> pack(Expr<scala.Byte> expr) {
        return new ByteWrapper(expr);
    }

    @Override
    protected Manifest manifest() {
        return manifest;
    }
}
